<template>
<div>
  <p>教师账号<input type="text" v-model="form.username"></p>
  <p>密码<input type="text" v-model="form.password"></p>
  <p>
    <button @click="dl">登录</button></p>
</div>
</template>

<script>
export default {
  name: "dl",
  data(){
    return{
      form:{}
    }
  },
  methods:{
    dl(){
      this.$axios.post('users/dl/',this.form)
      .then(res=>{
        if (res.data.code == 200){
          alert("登录成功")
        }
      })
    }
  },
  mounted() {

  }
}
</script>

<style scoped>

</style>
